package com.example.demo.response;



/**
 * @ClassName: ResultEnum
 * @Description: 响应码配置枚举
 * @author: moke
 * @date: 2020/3/17 10:10
 */
public enum ResponseCode {
    /*系统通用*/
    AUTHORIZATION_ERROR(-1,"authorization Error"),
    SUCCESS(200, "操作成功"),
    SYSTEM_RUNNING_ERROR(444,"系统运行异常，请联系联系平台管理员"),
    SYSTEM_ERROR(500,"更新失败"),
    OPERATE_FAIL(501, "操作有误"),
    DATE_PARSE_ERROR(503,"时间转换异常,请稍后再试"),
    PARAM_FAIL(504, "参数不能为空"),
    GET_FIELD_VALUE_FAIL(505, "获取字段注解属性值失败"),
    PRIMARY_CLASH_OR_GROUP_UNIQUE(506,"该数据已存在"),
    DATA_NO_EXIST(507,"您要查询的数据不存在，请校验参数是否正确"),
    DATA_EXCEPTION(508,"数据异常"),
    GET_IP_FAIL(509, "参数不能为空"),

    /*用户信息返回码--6***/
    LOGIN_FAILED(100001, "登录失败"),
    USER_NO_EXIST(100002, "账号不存在"),
    USER_DISABLE(100003, "您的账号被禁用，请联系管理员"),
    VERIFICATION_NO_EXIST(100004, "验证码不存在"),
    VERIFICATION_NO_MINE(100005, "不是该手机发的验证码"),
    VERIFICATION_NO_EQUAL(100006, "验证码不一致"),
    VERIFICATION_SEND_FAIL(100007, "验证码发送失败"),
    VERIFICATION_HAVE_BEEN_USED(100008, "验证码已使用"),
    SEND_CODE_MIN_ERROR(100009,"1分钟只能发送2条短信，请稍后再试"),
    SEND_CODE_DAY_ERROR(100010,"当天发送短信条数已达上限"),
    PHONE_HAVE_BEEN_EXIST(100011,"手机号已注册"),
    PHONE_HAVE_BEEN_REGISTER(100012,"手机号已被注册"),
    USER_PWD_ERROR(100013, "账号或密码错误"),
    NO_ORGAN_USER_ERROR(100014,"您不是机构用户，请前往web端注册机构用户"),
    VERIFICATION_HAVE_BEEN_EXPIRATION(100015, "验证码已过期"),

    /*通知信息返回码*/
    NOTIFICATION_HAS_EXIST(200001, "该通知已存在"),

    END(2020,"HelloWorld");







    private Integer code;
    private String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
